<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        .box {
            width: 300px;
            border: 1px solid red;
            height: 200px;
            margin: 100px auto 0;
            background-color: #eee;
            padding: 20px;
        }
        
        .box label {
            width: 52px;
        }
        
        .form-inline {
            /*width: 100px;*/
        }
    </style>
    <link rel="stylesheet" href="css/bootstrap.css">
</head>

<body>
    <div class="box">
        <div class="form-group form-inline">
            <label for="one">用户名</label>
            <input type="text" class="form-control" id="one" placeholder="请输入用户名">
        </div>
        <div class="form-group form-inline">
            <label for="two">密  码</label>
            <input type="password" class="form-control" id="two" placeholder="请输入用户名">
        </div>
    </div>
</body>

</html>